STEP 1: We've provided a main function. In the main function are your grades so far. Let's print these to the console!

  • In LOGIC, go to and drag Print String inside the main function. Make sure it's indented!
  • Change the text inside the print statement to "Initial grades:"
  • Go to . Drag Print Variable onto the next line of main(). Replace my_var with grades.
  • Click Run to see the output in the console.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)